home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Games Extra 1996 September
/
Amiga Games Extra CD-ROM 9-1996.iso
/
rexx
/
checkfile.vzrx
< prev
next >
Wrap
Text File
|
1996-07-09
|
1KB
|
53 lines
/*
$VER: CheckFile.vzrx 1.01 (30.9.95)
© 1995 by Georg Hörmann
Template: CheckFile.vzrx FILE/A,QUIT/S
FILE: Must be a valid filename (with path).
QUIT: If VirusZ has been started from the script, you can
quit after checking by specifying this option.
If VirusZ is not running, it will be started from the
script (and quitted afterwards if requested).
*/
Prog_VirusZ = "dh0:VZ" /* You may change this */
options results
options failat 99
UseQuitFlag = "no"
parse upper arg FileToCheck QuitFlag
if FileToCheck = "" then do
say "No file specified."
exit
end
if ~show(ports,VIRUSZ_II.REXX) then do
say "Starting VirusZ..."
address command Prog_VirusZ
UseQuitFlag = "yes"
StartTime = time(seconds)
do while ~show(ports,VIRUSZ_II.REXX)
if time(seconds) - StartTime > 20 then do
say "Error loading VirusZ!"
exit
end
end
end
address VIRUSZ_II.REXX CHECKFILE FileToCheck DECREXEC DECRDATA
if rc=0 then say "File is clean."
if rc=5 then say "File contains virus!"
if rc=10 then say "Error checking file!"
if UseQuitFlag = "yes" then do
if QuitFlag = "QUIT" then do
say "Quitting VirusZ..."
address VIRUSZ_II.REXX QUIT
end
end